package com.wingsfrog.puzzle.service.impl;

import com.wingsfrog.puzzle.modules.dao.OrdersDao;
import com.wingsfrog.puzzle.modules.entity.Orders;
import com.wingsfrog.puzzle.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    OrdersDao dao;

    @Override
    public Orders get(String orderNo) {
        return dao.findByOrderNo(orderNo);
    }

    @Override
    public void save(Orders orders) {
        dao.save(orders);
    }

}
